package com.example.demo.domain;

import sun.rmi.runtime.Log;

import java.io.Serializable;

public class Student implements Serializable {

    private static final long serialVersionUID = 1339434510787399891L;

    private Long id;
    private String name;
    private String password;

    public Student(){
    }

    public Student(Long id,String name,String password){
        this.id = id;
        this.name=name;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

}
